package com.ruoyi.householdacidsys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.householdacidsys.mapper.HouseholdNucleicAcidMapper;
import com.ruoyi.householdacidsys.domain.HouseholdNucleicAcid;
import com.ruoyi.householdacidsys.service.IHouseholdNucleicAcidService;

/**
 * 住户核酸任务Service业务层处理
 *
 * @author ruoyi
 * @date 2024-07-28
 */
@Service
public class HouseholdNucleicAcidServiceImpl extends ServiceImpl<HouseholdNucleicAcidMapper, HouseholdNucleicAcid> implements IHouseholdNucleicAcidService {
    @Autowired
    private HouseholdNucleicAcidMapper householdNucleicAcidMapper;

    /**
     * 查询住户核酸任务
     *
     * @param id 住户核酸任务主键
     * @return 住户核酸任务
     */
    @Override
    public HouseholdNucleicAcid selectHouseholdNucleicAcidById(Long id) {
        return householdNucleicAcidMapper.selectHouseholdNucleicAcidById(id);
    }

    /**
     * 查询住户核酸任务列表
     *
     * @param householdNucleicAcid 住户核酸任务
     * @return 住户核酸任务
     */
    @Override
    public List<HouseholdNucleicAcid> selectHouseholdNucleicAcidList(HouseholdNucleicAcid householdNucleicAcid) {
        return householdNucleicAcidMapper.selectHouseholdNucleicAcidList(householdNucleicAcid);
    }

    /**
     * 新增住户核酸任务
     *
     * @param householdNucleicAcid 住户核酸任务
     * @return 结果
     */
    @Override
    public int insertHouseholdNucleicAcid(HouseholdNucleicAcid householdNucleicAcid) {
            return householdNucleicAcidMapper.insertHouseholdNucleicAcid(householdNucleicAcid);
    }

    /**
     * 修改住户核酸任务
     *
     * @param householdNucleicAcid 住户核酸任务
     * @return 结果
     */
    @Override
    public int updateHouseholdNucleicAcid(HouseholdNucleicAcid householdNucleicAcid) {
        return householdNucleicAcidMapper.updateHouseholdNucleicAcid(householdNucleicAcid);
    }

    /**
     * 批量删除住户核酸任务
     *
     * @param ids 需要删除的住户核酸任务主键
     * @return 结果
     */
    @Override
    public int deleteHouseholdNucleicAcidByIds(Long[] ids) {
        return householdNucleicAcidMapper.deleteHouseholdNucleicAcidByIds(ids);
    }

    /**
     * 删除住户核酸任务信息
     *
     * @param id 住户核酸任务主键
     * @return 结果
     */
    @Override
    public int deleteHouseholdNucleicAcidById(Long id) {
        return householdNucleicAcidMapper.deleteHouseholdNucleicAcidById(id);
    }
}